﻿using System.Windows.Data;
using DCT.View;

namespace DCT
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();

            Binding titleBinding = new Binding("CurrentProjectFileName");
            titleBinding.Converter = new FileNameToTileConverter();
            this.SetBinding(MainWindow.TitleProperty, titleBinding);
        }
    }
}
